-- GENERATED SPELL FOR [Phantom Guardsman] --


function spell0_16425(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(29684,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16425', 3276, 1)
end

function spell1_16425(pUnit, Event) --@Summon Phantom Hound,Self--
pUnit:FullCastSpellOnTarget(29537,pUnit)
pUnit:RegisterEvent('Sorts_16425', 30271, 1)
end

function Sorts_16425(pUnit, Event)
local choix_sorts_16425 = math.random(0, 1)
if choix_sorts_16425 == 0 then
pUnit:RegisterEvent('spell0_16425', 1, 1)
end
if choix_sorts_16425 == 1 then
pUnit:RegisterEvent('spell1_16425', 1, 1)
end
end

function mob16425_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16425', math.random(1500, 3000), 1)
end

function mob16425_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16425_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16425_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16425, 1, 'mob16425_Action')
RegisterUnitEvent(16425, 2, 'mob16425_Leave')
RegisterUnitEvent(16425, 3, 'mob16425_Kill')
RegisterUnitEvent(16425, 4, 'mob16425_Die')
